package com.zzyl.nursing.service;

import java.util.List;
import com.zzyl.nursing.domain.Contract;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * contractService接口
 * 
 * @author laoYe
 * @date 2025-05-23
 */
public interface IContractService extends IService<Contract>
{
    /**
     * 查询contract
     * 
     * @param id contract主键
     * @return contract
     */
    public Contract selectContractById(Long id);

    /**
     * 查询contract列表
     * 
     * @param contract contract
     * @return contract集合
     */
    public List<Contract> selectContractList(Contract contract);

    /**
     * 新增contract
     * 
     * @param contract contract
     * @return 结果
     */
    public int insertContract(Contract contract);

    /**
     * 修改contract
     * 
     * @param contract contract
     * @return 结果
     */
    public int updateContract(Contract contract);

    /**
     * 批量删除contract
     * 
     * @param ids 需要删除的contract主键集合
     * @return 结果
     */
    public int deleteContractByIds(Long[] ids);

    /**
     * 删除contract信息
     * 
     * @param id contract主键
     * @return 结果
     */
    public int deleteContractById(Long id);

    void updateContractStatus();
}
